// Front.gif thumbnail will use to show thumb image with flowplayer var $ = jQuery.noConflict(); if (typeof mnImgSiteContentUrl != 'undefined') { mnImgSiteContentUrl = mnImgSiteContentUrl; } else { mnImgSiteContentUrl = ''; } var mnVideoThumbImage = new Image(480,360); mnVideoThumbImage.src = mnImgSiteContentUrl+"/img/site_content/Front.gif"; $(document).on('click','.mysessionFilter div.fontRegular, .mysessionFilter h3', function(){ var self = $(this); self.addClass('active'); self.parents('.mysessionFilter').siblings().children().removeClass('active'); if(self.next('.sideMenuWrapper').find('.radioli li').length){ self.next('.sideMenuWrapper').find('.radioli li:first-child').trigger('click'); } }); function revampedJeeplusLeftPanel(hasTG){ if(hasTG == 1){ $('.testG').show(); } var url = window.location.href; if (url.indexOf('online-live-tuition') > -1) { if($('#liveClass').html() != undefined) { $('#liveClass div.fontRegular, #liveClass h3').addClass('active'); } else{ if($('#textbooks').html() != undefined) $(".textbooks ul.radioli li:first-child").click(); else if($('#textbook_solution').html() != undefined) $(".textbook_solution ul.radioli li:first-child").click(); else if($('#test').html() != undefined) $(".test ul.radioli li:first-child").click(); } }else if (url.indexOf('assignments') > -1){ if($('#allassignment').html() != undefined) $('#allassignment div.fontRegular, #allassignment h3').trigger('click'); else{ if($('#textbooks').html() != undefined) $(".textbooks ul.radioli li:first-child").click(); else if($('#textbook_solution').html() != undefined) $(".textbook_solution ul.radioli li:first-child").click(); else if($('#test').html() != undefined) $(".test ul.radioli li:first-child").click(); } } if($('#textbook_solution').hasClass('active')){ var isTrigger = false; var liLength = $('#textbook_solution').siblings('.textbook_solution').children('.filterTypeBox').children('ul').children('li').length; $('#textbook_solution').siblings('.textbook_solution').children('.filterTypeBox').children('ul').children('li').each(function(a,b){ if($('li').hasClass('checked')){ return false; }else if(a+1 == liLength && ! $('li').hasClass('checked')){ isTrigger = true; } }); if(isTrigger){ $('#textbook_solution').siblings('.textbook_solution').children('.filterTypeBox').children('ul').children('li').first().trigger('click'); } } } function demopageRedirection1(){ gulf = readCookie('CakeCookie[gulf]') ? readCookie('CakeCookie[gulf]') : 'no'; defaultboardgrade = readCookie('CakeCookie[defaultPageCurrGrade]'); if(gulf == 'no'){ if(defaultboardgrade != null){ arrboardgrade = defaultboardgrade.split('-'); if(arrboardgrade[0] == 1){ if(arrboardgrade[1] == 5){ window.location.href = '/demo/cbse'+arrboardgrade[1];return; }if(arrboardgrade[1] == 6){ window.location.href = '/demo/cbse'+arrboardgrade[1];return; }if(arrboardgrade[1] == 7){ window.location.href = '/demo/cbse'+arrboardgrade[1];return; }if(arrboardgrade[1] == 8){ location.href = '/demo/cbse'+arrboardgrade[1];return; }if(arrboardgrade[1] == 9){ window.location.href ='/demo/cbse'+arrboardgrade[1];return; }if(arrboardgrade[1] == 10){ window.location.href ='/demo/cbse'+arrboardgrade[1];return; }if(arrboardgrade[1] == 11){ window.location.href ='/demo/cbse11-science';return; }if(arrboardgrade[1] == 12){ window.location.href ='/demo/cbse12-science';return; }else{ window.location.href ='/products/purchase';return; } }else{ window.location.href ='/products/purchase';return; } }else{ window.location.href ='/products/purchase';return; } }else{ window.location.href ='/products/purchase';return; } } if(typeof trackWebEngage === 'undefined'){ function trackWebEngage(eventName,vars){} } //its for ie8 if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(searchElement, fromIndex) {var k; if (this == null) {throw new TypeError('"this" is null or not defined');} var O = Object(this); var len = O.length >>> 0; if (len === 0) {return -1;} var n = +fromIndex || 0; if (Math.abs(n) === Infinity) {n = 0;} if (n >= len) {return -1;} k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); while (k < len) { var kValue;if (k in O && O[k] === searchElement) { return k;}k++;}return -1; }; } var newVartest='4'; var REWARD = { message: '', point: '', badge:'', image:'', action:'', appendMsg:'', headerText:'', byAjax:0, pageReload:'0', showPointMessage: function () { $('.point_badges_pop').remove(); parent.$('.point_badges_pop').remove(); try{ var elepoint=''; if(window.opener!=null) elepoint= window.opener.document.getElementById('mnPoint'); else elepoint= document.getElementById('mnPoint'); if(elepoint==null) elepoint=elepoint= parent.document.getElementById('mnPoint'); if(this.byAjax==1) var currentpoints=eval(elepoint.innerHTML); else var currentpoints=eval(elepoint.innerHTML)-this.point; if(currentpoints!=null && this.byAjax!=2){ var updatedpoints=this.point; var clrinterval= setInterval(function(){ if(updatedpoints != 0){ currentpoints+=2; updatedpoints-=2; elepoint.innerHTML=currentpoints; }else{ clearInterval(clrinterval); } },20); } }catch(err){ //alert(err); } var html='